
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<head>
    <script src="${ctx }/js/jquery.form.js" type="text/javascript"></script>
    <script src="${ctx }/js/ajaxfileupload.js" type="text/javascript"
    ></script>
</head>
<div class="pageContent">
    <form action="${ctx }/user/doUpdate" method="post"
          onsubmit="return validateCallback(this , dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <p>
                <label>ID:${record.userId}
                </label>
                <input type="hidden" name="userId" value="${record.userId}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>用户类型:
                    <c:if test="${record.userType == 1 }">
                        学生
                    </c:if>
                    <c:if test="${record.userType == 2 }">
                        老师
                    </c:if>
                </label>
            </p>
            <div class="divider"/>
            <p>
                <label>密码:</label>
                <input name="password" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value=""/>
                <span class="info" >不修改密码此处不填</span>
            </p>
            <div class="divider"/>
            <p>
                <label>手机号:</label>
                <input name="mobile" class="required" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.mobile}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>邮箱:</label>
                <input name="email" class="required" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.email}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>头像链接:</label>
                <input name="imgUrl" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.imgUrl}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>昵称:</label>
                <input name="nickname" class="required" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.nickname}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>性别:</label>
                <select id="gender" name="gender" style="width:180px">
                    <option value="0"
                            <c:if test="${record.gender eq 0}">selected="selected"</c:if>>女
                    </option>
                    <option value="1"
                            <c:if test="${record.gender  eq 1}">selected="selected"</c:if>>男
                    </option>
                </select>
            </p>
            <div class="divider"/>
            <p>
                <label>生日:</label>
                <input class="date valid " datefmt="yyyy-MM-dd" name="birthdayStr" type="text"
                       maxlength="20"
                       value="<fmt:formatDate value="${record.birthday}" type="both"
                                pattern="yyyy-MM-dd"/>"/>
            </p>
            <div class="divider"/>
            <p>
                <label>时区:</label>
                <input name="timezone" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.timezone}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>国家:</label>
                <input name="country" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.country}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>省份:</label>
                <input name="province" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.province}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>城市:</label>
                <input name="city" class="" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.city}"/>
            </p>
            <div class="divider"/>
            <p>
                <label>职业:</label>
                <input name="occupation" class="required" 　type="text" class="" maxlength="50" style="width:180px"
                       value="${record.occupation}"/>
            </p>
            <div class="divider"/>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
